package com.example.protocol.raft;

import java.util.ArrayList;
import java.util.List;

public class RaftExample {
    public static void main(String[] args) {
        List<RaftNode> nodes = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            nodes.add(new RaftNode(nodes));
        }

        RaftNode node = nodes.get(0);
        node.startElection();

        System.out.println("Node state: " + node.getState());
    }
}
